namespace win {
    export class gdi32 {

    }
    export namespace gdi32 {
        ffi.cdef(
            `
                void * GetStockObject(int);
            `
        )
        export let dll = ffi.load("gdi32");
        export let getStockObject = dll.GetStockObject as (this: void, type: number) => any;
        export enum CONST {
            BLACK_BRUSH = 4,
            DKGRAY_BRUSH = 3,
            GRAY_BRUSH = 2,
            HOLLOW_BRUSH = 5,
            LTGRAY_BRUSH = 1,
            NULL_BRUSH = 5,
            WHITE_BRUSH = 0,
            DC_BRUSH = 18,
            DC_PEN = 19,
            BLACK_PEN = 7,
            NULL_PEN = 8,
            WHITE_PEN = 6,
            ANSI_FIXED_FONT = 11,
            ANSI_VAR_FONT = 12,
            DEVICE_DEFAULT_FONT = 14,
            DEFAULT_GUI_FONT = 17,
            OEM_FIXED_FONT = 10,
            SYSTEM_FONT = 13,
            SYSTEM_FIXED_FONT = 16,
            DEFAULT_PALETTE = 15,
        }

    }

}